import re


actions = {
   'name1':{
       'from':re.compile(r'^test'),
       'to':re.compile(r''),
       'subject':re.compile(r''),
       'body':re.compile(r''),
       'bool':lambda action, f, t, s, b: action['from'].match(f) or action['to'].match(t), # logical function based on given text
       'action':'''
                  go http://www.google.com/?q=$from_email
                  submit btnI

                  show
                ''',
   },
}

